package cn.school.iot.service;


import cn.school.common.QueryBaseVo;
import cn.school.common.api.CommonPage;
import cn.school.common.api.CommonResult;
import cn.school.iot.param.StudentRulePageParam;
import cn.school.iot.vo.FaceGateRuleTimePeriodReceiveVo;
import cn.school.iot.vo.FaceGateRuleTimePeriodVo;
import cn.school.iot.vo.StudentRuleVo;
import com.baomidou.mybatisplus.core.metadata.IPage;

public interface FaceGateRuleTimePeriodService {

    IPage<FaceGateRuleTimePeriodVo> getList(FaceGateRuleTimePeriodVo vo, QueryBaseVo queryVo);

    FaceGateRuleTimePeriodVo getById(Long id);

    int addOrUpdateDeviceRule(FaceGateRuleTimePeriodReceiveVo vo);

    int deleteById(Long id);

    CommonResult<CommonPage<StudentRuleVo>> getStudentInfo(StudentRulePageParam param);

    CommonResult<CommonPage> syncFaceGateRule(String type);

    CommonResult<CommonPage> receiveGateRule(String records);

    CommonResult<CommonPage> receiveStudentRuleRecords(String records);
}
